package org.monkey.example.order.entity.vo;

import lombok.Data;
import org.monkey.example.order.entity.dto.OrderDto;

@Data
public class OrderVo {

  private Long id;

  private String orderNumber;

  private Long accountId;

  private Double amount;

  public OrderVo(OrderDto orderDto) {
    this.id = orderDto.getId();
    this.orderNumber = orderDto.getOrderNumber();
    this.accountId = orderDto.getAccountId();
    this.amount = orderDto.getAmount().doubleValue();
  }
}
